/*
 * typesRAID.h
 *
 *  Created on: 04/12/2011
 *      Author: utn_so
 */

#ifndef TYPESRAID_H_
#define TYPESRAID_H_

#include <stdint.h>
#include <semaphore.h>
#include "listPPD.h"

typedef struct {
	int32_t socket;
	uint32_t IdPPD;
} __attribute__((packed)) ParamThd;

typedef enum {
	PPD_ON, PPD_OFF
} StatusPPD;

typedef struct {
	int32_t  socket;
	uint32_t IdPPD;
	ListPPD	 list;
	ListPPD  listWait;
	uint32_t sincronizedTo; //hasta que sector esta sincronizado
	StatusPPD status;
} __attribute__((packed)) PPD;


#endif /* TYPESRAID_H_ */
